package com.kuzan.autocloud.common.model.workflow.runtime;

import com.kuzan.autocloud.common.model.workflow.configuration.WorkFlowInfo;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * <p>Description: 流程运行时信息</p>
 *
 * @author kuzank
 */
@Data
@NoArgsConstructor
public class WorkFlowRunResult {
    /**
     * 操作类型:审核/审批/知会/办理/创建/领取
     */
    private String operation;

    private WorkFlowRun workFlowRun;
    private Map<String, Object> workFlowRunDetail;
    private Map<String, Object> formData;
    private WorkFlowInfo workFlowInfo;

    private List<Map<String, Object>> workFlowRunLogs;
    private List<Map<String, Object>> simpleDirection;

    public static WorkFlowRunResult ofstart(WorkFlowInfo workFlowInfo) {
        WorkFlowRunResult workFlowRunResult = new WorkFlowRunResult();
        workFlowRunResult.setWorkFlowInfo(workFlowInfo);
        workFlowRunResult.setOperation("9580f3be259b42838d2184447bc227de");
        return workFlowRunResult;
    }

}
